<include file="Topic/header" />
<body ontouchstart="">

<div class="details_box">
	<ul class="details_nav">
    	<label>来自{$topic_info.community_name}</label>
    </ul>
    <ul class="detail">
        	<li class="left">
                <div>
                	<img style="float:left;width:0px;height:0px;" src="{$host}/Public/Home/images/logo300.jpg"/>
                	<empty name='topic_info.user.user_icon'>
                		<img src="{$host}/Public/Home/images/no_head.png"/>
                	<else />
                		<img src="{$topic_info.user.user_icon}" onerror="this.src='{$host}/Public/Home/images/no_head.png'"/>
                	</empty>
                	
                </div>
            <li>
            <li class="right">
           	   <span class="text1">{$topic_info.user.user_name}<span class="text"><neq name='null_job' value='1'>（{$topic_info.user.user_company} &nbsp;{$topic_info.user.user_job}）</neq></span></span>
               <p  class="text" >{$topic_info.user.school_short_name}</p>
           </li>        
   </ul>
   <ul class="detail_article">
        <label>{$topic_info.title}</label>
   		<p>{$topic_info.content}</p>
   </ul>
	<ul class="details_box1">
		<li class="article">
			<p >
				<a><span class="deta">{$topic_info.create_date}<!-- 12-18 09:38 --></span></a>
				<a><span class="right pre" >评论 {$topic_info.comment_count}</span></a>
			</p>
		</li>
	</ul>
	<div id='list_content'>
		<div id = "list_0">
			<!-- 列表 -->
			<center id="loading">&nbsp;<br /><img width="10%" src="__PUBLIC__/Home/images/loading.gif"></center>
		</div>
	</div>
	<div class="invite_lots" style="clear:both;">
	<a htef="#" onclick="commentList();return false;"><p id="more">点击加载更多></p></a><!-- more -->
	</div>
</div>

	<input type="hidden" value="0" id="list_last_id">
	<input type="hidden" value="0" id="row_number">
<!-- <div class="footer">
   		<div>
        	<p>前往“EMBA-云”App报名参与活动</p>
        </div>
        <div class="btn">
        	<button type="button" onClick="download();return false;">前往</button>
		</div>
</div>   -->
      <button class="btn btn_primary" id="checkJsApi"></button>
      <button class="btn btn_primary" id="onMenuShareTimeline"></button>
      <button class="btn btn_primary" id="onMenuShareAppMessage"></button>
</body>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"> </script>
<script>
$(window).load(function() {
	$("#more").hide();
	commentList();
});
	function commentList(){
		var topic_id = '{$Think.get.topic_id}';
		var list_last_id = $("#list_last_id").val();
		$("#list_"+list_last_id).load("/Topic/ajaxGetTopicCommentList?topic_id="+topic_id+"&list_last_id="+list_last_id+"&random="+Math.random(),{},function(){
			$("#loading").hide();
			list_last_id = $("#list_last_id").val();
			$("#list_content").append('<div id = "list_'+list_last_id+'"></div>');
		});
	}
	
	function download(){
		$("#loading").show();
		$("#more").show();
		$('#list_last_id').val('0');
		$('#row_number').val('0');
		window.location.href= "{$download_url}";
	}
</script>
</html>